use64

default rel 
section .text 
 
        sub     rsp,40 
        mov     rcx,0 
        lea     rdx,[text] 
        lea     r8,[caption] 
        mov     r9,1    ; MB_OKCANCEL 
        call    0x775B12B8
        sub     eax,1   ; incidentally suits as return value 
                        ; for exception handler 
        add     rsp,40 
        ret 

text:   db      'OK to rethrow, CANCEL to generate core dump',0 
caption:db      'SEGV',0 
